import React, { Component } from "react";
import { BrowserRouter, Switch, Route, Redirect } from "react-router-dom";
import Login from "./pages/login";
import Register from "./pages/register";
import Home from "./pages/home";
import "./utils/axiosUtils";
import NavigationGuard from "./components/navigationGuard";
export default class App extends Component {
  render() {
    return (
      <BrowserRouter>
        <Switch>
          <NavigationGuard></NavigationGuard>
          {/* <Redirect exact from="/" to="/home"></Redirect>
          <Route path="/login" component={Login}></Route>
          <Route path="/register" component={Register}></Route>
          <Route path="/home" component={Home}></Route> */}
        </Switch>
      </BrowserRouter>
    );
  }
}
